import { Component, OnInit } from '@angular/core';
import { SelectItem } from 'primeng/api';
declare function init(map): void;
@Component({
  selector: 'underground-z',
  templateUrl: './underground-z.component.html',
  styleUrls: ['./underground-z.component.scss']
})
export class UndergroundZComponent implements OnInit {
  years: SelectItem[];
  selectedYear: string[] = [];
  showPanel: boolean;
  constructor() { }
  ngOnInit() {
    init('mapDiv');
    this.years = [
      { label: '2013年', value: '2013' },
      { label: '2014年', value: '2014' },
      { label: '2015年', value: '2015' },
      { label: '2016年', value: '2016' },
      { label: '2017年', value: '2017' },
      { label: '2018年', value: '2018' }
    ];
  }
  hzqy(): void {
    alert("功能开发中!");
  }
  scpmt(): void {
    this.showPanel=true;
  }
  hidePanel(){
    this.showPanel = false;
  }
}
